﻿using AutoMapper;

namespace QuartzServices.Application.AutoMapper
{
    /// <summary>
    /// 静态全局 AutoMapper 配置文件
    /// </summary>
    public class AutoMapperConfig
    {

        public static MapperConfiguration RegisterMappings() 
        {

            return new MapperConfiguration(d =>
            {
                d.AddProfile(new DomainToAppModelMappingProfile());
                d.AddProfile(new AppModelToDomainMappingProfile());

            });
        }
    }
}
